package org.idtem.utils.wordnet;

import org.idtem.utils.constants.Constants;

public class WordNetHelper {
	
	public static boolean RelationImpliesPOS(String relation)
	{
		if (relation.equalsIgnoreCase(Constants.WNConstants.Relation.HAS_XPOS_HYPONYM)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.XPOS_FUZZYNYM)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.XPOS_NEAR_SYNONYM)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.BE_IN_STATE)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.CAUSES)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.HAS_DERIVED)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.NEAR_SYNONYM)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.PERTAINS_TO)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.ROLE)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.ROLE_AGENT)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.ROLE_INSTRUMENT)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.ROLE_LOCATION)
			|| relation.equalsIgnoreCase(Constants.WNConstants.Relation.ROLE_PATIENT)
			)
		{
			return false;
		}
		return true;
	}

}
